package com.block.product.service;

import com.block.common.model.dto.UserInfoDTO;
import com.block.db.entity.ProductInfo;
import com.block.db.entity.ProductProfit;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2022-08-30
 */
public interface IProductProfitService extends IService<ProductProfit> {

    /**
     * 统计产品uv 和收益
     * @param productId
     * @param userInfoDTO
     */
    void saveProductUvProfit(Long productId, UserInfoDTO userInfoDTO, String sceneId);

    ProductProfit saveTodayProdProfitInfo(String lockKey, String dateInfo, ProductInfo productInfo);
}
